package cn.schoolwow.flow.monitor.test.module.requestLog;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("/system")
public class SystemController {

    /**根据用户id查询*/
    @RequestMapping(value = "/getUserById", method = RequestMethod.GET)
    public String getUserById(@RequestParam("userId") Long userId){
        return "user";
    }

    /**创建用户*/
    @RequestMapping(value = "/createUser", method = RequestMethod.POST)
    public void createUser(
            @RequestBody JSONObject user
    ){}

    /**上传文件*/
    @RequestMapping(value = "/uploadFile", method = RequestMethod.POST)
    public void uploadFile(
            @RequestPart("file")MultipartFile file
    ){
    }
}
